package com.cjl.designpattern.factory;

public class Foo2<T> {
    private T x;

    //泛型方法
    public <F extends FactoryI<T>> Foo2(F factory){
        x =  factory.create();
    }

    public <T> Foo2(T factory){

    }
}
